package study1;

//动物类
public class Animal {
    protected  String name;
    protected  int age;
    public  Animal(String name,int age){
        this.name = name;
        this.age = age;
    }
    public void eat(String food){
        System.out.println(this.name + "正在吃"+ food);

    }
}
